
const express = require("express")
const path = require("path")
const createApiDoc = (app, getApiRouter, pathCN) => {
    app.get("/_apidoc/get", (req, res) => {
        res.send({ status: 1, data: getApiRouter() });
    });
    app.get("/_apidoc/getpathcn", (req, res) => {
        res.send({ status: 1, data: pathCN });
    });
    app.use("/_mas_doc", express.static(path.join(__dirname, "../public/")));
};
module.exports = {
    createApiDoc
}